<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="icon" type="text/css" href="icon.ico" />

    <?php foreach($conf['css'] as $k=>$v){ ?>
    <link rel="stylesheet" type="text/css" href="/shop/shop/Public/Home/css/<?php echo ($v); ?>.css" />
    <?php }?>

    <script src="/shop/shop/Public/Home/js/jquery-1.10.1.min.js" type="text/javascript" charset="utf-8"></script>

    <?php foreach($conf['js'] as $k=>$v){ ?>
    <script src="/shop/shop/Public/Home/js/<?php echo ($v); ?>.js" type="text/javascript" charset="utf-8"></script>
    <?php }?>

</head>

<body>
<!--头部开始-->
<div id="top">
    <!--头部灰条就开始-->
    <div class="topbox">
        <div class="main">
            <div class="topleft fl">
                <a href="javascript:;">欢迎来到冰雨商城</a>
                <a href="<?php echo U('Home/Index/index');?>">商城首页</a>
                <a href="#">收藏本站</a>
                <a href="#">帮助中心</a>
                <a href="#" class='last'><i></i>手机商城</a>
            </div>
            <div class="topright fr">
                <div class="login fl">
                    <a href="<?php echo U('Home/Login/index');?>">登录</a>
                    <a href="<?php echo U('Home/Login/register');?>">注册</a>
                </div>
                <span class="fl">|</span>
                <div class="fcode fl">

                    <a href="<?php echo U('Home/Cart/index');?>">我的订单</a>
                </div>
            </div>
        </div>
    </div>
    <!--头部灰条结束-->

    <!--logo区域开始-->
    <div class="logoRegion">
        <div class="main">
            <div class="logo">
                <a href=""><img style="width: 200px;height: 100px;" src="/shop/shop/Public/Home/logo.png"/></a>
            </div>
            <div class="seachRegion">
                <div class="seach fl">
                    <form action="" method="post">
                        <input type="text" class="seachtxt fl" value="新品上市" />
                        <input type="submit" class="btn" value="" />
                    </form>
                    <p class="searchkey">
                        <a href="">四六级耳机低至5折</a>
                        <a href="">四六级耳机低至5折</a>
                        <a href="">四六级耳机低至5折</a>
                    </p>

                </div>
                <div class="topshopcart fr" style="">
                    <a href="" class="header-cart"><i></i>我的购物车<span class="cart-size">(<?php echo ($cart_goods_num); ?>)</span></a>
                    <div class="cart-tips" style="margin: 0px;padding: 0px;text-align: center;height: auto">
                       <?php if(isset($_SESSION['uid'])){ ?>
                        <ul style="margin: 0px;padding: 0px;">
                             <?php if(is_array($sessionData)): foreach($sessionData as $k=>$v): ?><li style="line-height: 40px;"><a href="<?php echo u('Home/Content/index',['gid'=>$v['id']]);?>"><?php echo ($v['name']); ?></a></li><?php endforeach; endif; ?>
                        </ul>
                        <?php  }else{ ?>
                        <ul style="margin: 0px;padding: 0px;">
                           <li>
                               请 <a href="<?php echo U('Home/Login/index');?>">登录</a>后查看您的购物车。
                           </li>
                        </ul>

                        <?php } ?>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <!--logo区域结束-->
    <!--导航开始-->
    <div class="navbox">



        
	<script>
		$(function(){
			area.init('area');
			//默认选中效果
			area.selected('河北','保定','易县');
		})
	</script>
	</div>
	<!--导航结束-->
	<div class="clear"></div>

	</div>
	<!--头部结束-->
	<!--中间开始-->
	<div class="body-center">
		<div class="center-content">
			<!--头部开始-->
			<div class="content-header">
				<p>收获地址  <span>温馨提示：为了保证您的权益，防止黄牛倒卖，订单进入正在配货状态将不能修改收货地址和发票信息！</span></p>
			</div>
			<!--头部结束-->
			<!--地址选择开始-->
			<div class="content-address">
				<div class="address_click">
					<?php if(is_array($address)): foreach($address as $k=>$v): ?><div class="consignee-item">

							<span class="radio-img"></span>
							<label for="adress2" class="radio">
								<input type="radio" name="adress" id="adress2" class="radio-select" value=""/><span class="e-name"><?php echo ($v['consignee']); ?></span>，<span class="city-particular"><?php echo ($v['address']); ?></span>，<span class="codeNumber"><?php echo ($v['mobile']); ?></span>
							</label>
							<input type="text" name="oid" hidden class="oid" value="<?php echo ($v['oid']); ?>">
							<span class="compile"><a class="copyreader" href="javascript:;">编辑</a></span>

						</div><?php endforeach; endif; ?>
				</div>
				<script>
					$(function () {
						$('.address_click').click(function () {

							var conten = $('input[name="adress"]:checked').parents('.radio').text();
							$.post("<?php echo u('ajaxAddress');?>",
									{conten:conten},
									function (res) {
//												 console.log(res);
										$('.m-city') .text(res.address);
										$('.m-name') .text(res.name);
										$('.m-number') .text(res.mobile);
									},'json');
						})

					})
				</script>


				<!--添加新地址-->

				<div class="consignee-item new-ress">
					<span class="radio-img"></span>
					<label for="adress3" class="radio"><input type="radio" name="adress" id="adress3" class="radio-select"  value=""/>使用新地址</label>
				</div>
				<!--添加地址框-->
				<div class="add-address new">
					<form action="<?php echo u('Home/Order/newAddress');?>" method="post">
						<div class="s-name">
							<h3 class="style"><b>*</b>收货人姓名</h3>
							<input type="text" class="public" name="name" id="name" placeholder="收货人姓名" value="" />
						</div>
						<div class="address-s">
							<h3 class="style"><b>*</b>地址</h3>

							<!--城市联动-->
							<select name="areal[]" id="area1"></select>
							<select name="areal[]" id="area2"></select>
							<select name="areal[]" id="area3"></select>
							<!--<input type="text" name="name" id="name" placeholder="收货人姓名" value="" />-->
							<textarea name="particular" placeholder="路名或街道地址，门牌号 " id="particular" rows="" cols=""></textarea>
						</div>

						<div class="postcode">
							<h3 class="style"><b>&nbsp;</b>邮政编码</h3>
							<input type="text" class="public" name="postcode" id="postcode" placeholder="6位邮政编码" value="" />
						</div>
						<div class="shouji">
							<h3 class="style"><b>*</b>手机号码 </h3>
							<input type="text" class="public" name="shouji" id="shouji" placeholder="11位手机号码" value="" />
						</div>
						<div class="btn-group">
							<input type="submit"  class="btn" id="btn-bao" value="保存"/>
							<a href="javascript:;" class="btn-qu btn">取消</a>
						</div>

					</form>
				</div>
				<!--添加地址按钮-->
				<a href="javascript:;" class="new-address"></a>
				<!--添加新地址结束-->
				<!--编辑开始-->
				<div class="add-address edit">
					<form action="<?php echo u('Home/Order/editAddress');?>" method="post">
						<input type="text" name="oid" hidden id="oid" value="">
						<div class="s-name">
							<h3 class="style"><b>*</b>收货人姓名</h3>
							<input type="text" class="public" name="name" id="name" placeholder="收货人姓名" value="" />
						</div>
						<div class="address-s">
							<h3 class="style"><b>*</b>地址</h3>

							<!--城市联动-->
							<!--<input type="text" name="name" id="name" placeholder="收货人姓名" value="" />-->
							<textarea name="particular" placeholder="路名或街道地址，门牌号 " id="particular" rows="" cols=""></textarea>
						</div>

						<div class="postcode">
							<h3 class="style"><b>&nbsp;</b>邮政编码</h3>
							<input type="text" class="public" name="postcode" id="postcode" placeholder="6位邮政编码" value="" />
						</div>
						<div class="shouji">
							<h3 class="style"><b>*</b>手机号码 </h3>
							<input type="text" class="public" name="shouji" id="shouji" placeholder="11位手机号码" value="" />
						</div>
						<div class="btn-group">
							<input type="submit"  class="btn" id="btn-bao" value="保存"/>
							<a href="javascript:;" class="btn-qu btn">取消</a>
						</div>

					</form>
				</div>
			</div>
			<!--地址选择结束-->


			<!--选项开始-->
			<div class="options">
				<div class="options-all">
					<div class="payment options-public">
						<h3>支付方式</h3>
					</div>
					<div class="consignee-item new-ress">
						<span class="radio-img pitchOn"></span>
						<label for="payment" class="radio w122"><input type="radio" name="payment" id="payment" class="radio-select"  value=""/>在线支付</label>
					</div>
				</div>
				<div class="options-all">
					<div class="distribution options-public">
						<h3>配送方式</h3>
					</div>
					<div class="consignee-item new-ress">
						<span class="radio-img pitchOn"></span>
						<label for="distribution" class="radio w122"><input type="radio" name="distribution" id="distribution" class="radio-select"  value=""/>免费配送</label>
					</div>
				</div>
				<div class="options-all invoice">
					<div class=" options-public">
						<h3>发票信息</h3>
					</div>
					<div class="box-all" style="overflow: hidden;">
						<div class="consignee-item new-ress left">
							<span class="radio-img pitchOn"></span>
							<label for="invoice" class="radio w122 no"><input type="radio" name="invoice" id="invoice" class="radio-select "  value=""/>不开发票</label>
						</div>
						<div class="consignee-item new-ress left">
							<span class="radio-img "></span>
							<label for="invoice1" class="radio w122 yes"><input type="radio" name="invoice" id="invoice1" class="radio-select "  value=""/>普通发票</label>

						</div>
					</div>
					<div class="con">
						<div class="text">发票内容：购买商品明细</div>
						<div class="text">发票抬头：请确认单位名称正确，以免因名称错误耽搁您的报销。</div>
						<div class="box-all" style="overflow: hidden; margin-top: 10px;">
							<a href="javascript:;" class="geren tongyong active">个人</a>
							<a href="javascript:;" class="danwei tongyong">单位</a>
						</div>
						<div class="danweiname" >
							<div class="text">单位名称：</div>
							<input type="text" name="danweiname" id="danweiname" value="" />
						</div>
					</div>
				</div>

			</div>
			<!--选项结束-->
			<div class="options-all  goods">
				<div class="qingdan options-public" style="border: none;">
					<h3>商品清单</h3>
				</div>
				<div class="goodsList">
					<div class="title">
						<ul>
							<li class="l1">商品名称</li>
							<li class="l2">商品规格</li>
							<li class="l2">单价</li>
							<li class="l3">数量</li>
							<li class="l4">合计</li>
						</ul>
					</div>
				</div>

				<div class="goods-cont">
					<ul>
						<?php if(is_array($data['order'])): foreach($data['order'] as $k=>$v): ?><li style="padding: 13px;">
								<div class="gc1">
									<img src="/shop/shop/<?php echo ($v['pic']); ?>"/>
									<span><?php echo ($v['name']); ?></span>
								</div>
								<div class="gc2">
												<span>
													<?php if(is_array($v['options'])): foreach($v['options'] as $kk=>$vv): echo ($vv); ?>&nbsp;&nbsp;<?php endforeach; endif; ?>
												</span>
								</div>
								<div class="gc2">
									¥
									<span><?php echo ($v['price']); ?></span>
								</div>
								<div class="gc3">
									X
									<span><?php echo ($v['num']); ?></span>
								</div>
								<div class="gc4">
									¥
									<span><?php echo ($v['total']); ?></span>
								</div>
							</li><?php endforeach; endif; ?>

					</ul>
				</div>

				<!--总计-->
				<div class="zongji">
					<ul>
						<li>
							共<span class="color"><?php echo ($data['total_rows']); ?></span>件
						</li>
						<li>
							金额合计：<span><?php echo ($data['total']); ?></span>元
						</li>
						<li>
							优惠抵扣：<span>-0.00</span>元
						</li>
						<li>
							配送费：<span>0</span>元
						</li>
						<li style="margin-top: 15px;">
							<h3>应付总金额：<span class="color"><?php echo ($data['total']); ?></span>元</h3>
						</li>
					</ul>
				</div>

				<!--确认地址-->
				<div class="mailTo">
					<p>寄送至：<span class="m-city">北京 北京市 朝阳区 </span></p>
					<p><span class="m-name">贾博雨</span> (收件人) <span class="m-number">15600266727</span> </p>
				</div>
				<div class="" style="overflow: hidden;">
					<a href="" class="liji">立即下单</a>
				</div>

			</div>


		</div>
	</div>

	<!--中间结束-->




<!--尾部开始-->
<div class="mod-footer">
    <div class="foot-bannerw">
        <div class="foot-banner clearfix">
            <div class="banner-item">
                <a href="#" target="_blank" data-monitor="home_foot_days7"><i class="icon1">7</i>7天无理由退货</a>
            </div>
            <div class="banner-item">
                <a href="#" target="_blank" data-monitor="home_foot_days15"><i class="icon2">15</i>15天免费换货</a>
            </div>
            <div class="banner-item"><i class="icon3">包</i>满99元包邮</div>
            <div class="banner-item">
                <a href="#" target="_blank" data-monitor="home_foot_moblie"><i class="icon4">服</i>手机特色服务</a>
            </div>
        </div>
    </div>
    <div class="foot-containerw">
        <div class="foot-container clearfix">
            <dl class="foot-con"> <dt data-monitor="home_foot_freshman">帮助中心 </dt>
                <dd data-monitor="home_help_freshman">
                    <a target="_blank" href="#" rel="nofollow">用户注册</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">用户登录与密码找回</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">购买指南</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">支付方式</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">配送与说明</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_help">售后服务 </dt>
                <dd data-monitor="home_help_help">
                    <a target="_blank" href="#">7 日无理由退货</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">质量问题 15 日内换货</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">保修条款</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">服务流程</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">安迷之家</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_guide">特色服务 </dt>
                <dd data-monitor="home_help_guide">
                    <a target="_blank" href="#" rel="nofollow">F码通道</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">免费试用</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">360 生态</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">一元夺宝</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_tuiguang">推广合作 </dt>
                <dd data-monitor="home_help_try">
                    <a target="_blank" href="#" rel="nofollow">商品入驻</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">大客户采购</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_try">关注360商城 </dt>
                <dd data-monitor="home_help_try">
                    <a target="_blank" href="#" rel="nofollow">360商城大事记</a>
                </dd>
            </dl>

        </div>
    </div>
    <div class="footer-copyright">冰雨商城 ©2016-2018 BYCMS工作室版权所有 京ICP备000001号-43</div>
</div>
<!--尾部结束-->

<!--右边底部返回顶部-->
<div class="slidebar" id="slidebar">
    <ul>
        <li class="topback">
            <a href="javascript:;"></a>
        </li>
    </ul>
</div>
<!--右边底部返回顶部结束-->


<!--左侧楼层结束-->
</body>

</html>